<script setup>
import {reactive} from "vue";

let my_color = reactive(
    {
      backgroundColor: "red"
    }
)

let my_font_size = reactive(
    {
      fontSize: "16px"
    }
)
</script>

<template>
  <!--  数组中的每一项都是一个对象 -->
  <h1 v-bind:style="[my_color, my_font_size]">Hello, World!</h1>
</template>

<style scoped>

</style>